package com.hjs.mapper;

import com.hjs.bean.Roadway;
import com.hjs.bean.TypeAndLength;
import com.hjs.bean.TypeAndThickness;

import java.util.List;

/**
 * @author violetfreesia
 * @date 2020/06/16
 */
public interface RoadwayMapper {
    boolean addOneRoadway(Roadway obj);

    boolean addOneTypeAndThickness(TypeAndThickness obj);

    boolean addOneTypeAndLength(TypeAndLength obj);


    boolean deleteOneRoadwayById(int id);

    boolean deleteOneTypeAndThicknessById(int id);

    boolean deleteOneTypeAndLengthById(int id);

    boolean updateOneRoadway(Roadway obj);

    boolean updateOneTypeAndThickness(TypeAndThickness obj);

    boolean updateOneTypeAndLength(TypeAndLength obj);

    Roadway getOneRoadwayById(int id);

    List<TypeAndThickness> getOneTypeAndThicknessById(int id);

    List<TypeAndLength> getOneTypeAndLengthById(int id);

    List<Roadway> getAllRoadway();

}
